package com.lmk;

    /**
         *小狗 实体类
         * @author 青笙
         * @email  1460961774@qq.com
         */

public class Dog {
    //1.属性
    private String name;
    private  String color;
    private Integer age;
    //2.构造方法


        public Dog(String name, String color, Integer age) {
            this.name = name;
            this.color = color;
            this.age = age;
        }
        //3.访问器

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }

        public Integer getAge() {
            return age;
        }

        public void setAge(Integer age) {
            this.age = age;
        }
    }
